﻿CREATE FUNCTION [dbo].[TrackerStatusList]
( @TrackerID varchar(11)
)RETURNS TABLE
AS
RETURN(
SELECT s.* FROM t_Tracker t CROSS APPLY NextMenusList(StatusID) s WHERE t.ID = @TrackerID
)
